package com.travel.modules.review.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.travel.modules.asset.entity.Goods;
import com.travel.modules.review.dao.ReviewDao;
import com.travel.modules.review.entity.Review;
import com.travel.modules.review.service.ReviewService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("reviewService")
public class ReviewServiceImpl extends ServiceImpl<ReviewDao, Review> implements ReviewService {
    @Resource
    private ReviewDao reviewDao;

    @Override
    public List<Review> getReviewList(String goodsId) {
        return reviewDao.getList(goodsId);
    }

    @Override
    public String review(Review rev, Goods goods) {
        return null;
    }

    @Override
    public String deleteReview(String fileName, Integer id) {
        return null;
    }

    @Override
    public String cleanReview(String fileName) {
        return null;
    }
}
